﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Drawing;
using System.Data;
using System.Text;
using System.Linq;
using System.Threading.Tasks;
using System.Windows.Forms;
using DevExpress.XtraEditors;

namespace POS
{
    public partial class HibachiSlipScreen : DevExpress.XtraEditors.XtraUserControl
    {
        SimpleButton SelectedItemToAdd;
        public HibachiSlipScreen()
        {
            InitializeComponent();
        }

        private void AddPanelInfo_Click(object sender, MouseEventArgs e)
        {
            PanelControl SelectedPanel = (PanelControl)sender;

            LabelControl NewInfo = new LabelControl();

            NewInfo.Text = SelectedItemToAdd.Text;
            NewInfo.Location = new Point(0, 15);

            SelectedPanel.Controls.Add(NewInfo);
        }

        private void btnSelection_click(object sender, EventArgs e)
        {
            SimpleButton button = (SimpleButton)sender;

            SelectedItemToAdd = button;
        }

        private void simpleButton21_Click(object sender, EventArgs e)
        {
            MainProgram._Main.panelControl1.Controls.Clear();
            MainProgram._Main.panelControl1.Controls.Add(new HomeScreen());
        }
    }
}
